home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-01-18 | 554 b | 22 lines |
- ' Small demo of how to get text-lines
- ' A bit faster than Chr$(Peek()) .....
- Screen Open 1,640,256,2,Hires
- Reserve As Work 10,1024 : ST=Start(10)
- Extension_10_0006 1,":textfiler/blink.doc",0
- A=1
- While A
- D=Free
- A= Extension_10_0024(1,ST,1024)
- _STOP=ST+A
- While A>CNT
- A$= Extension_10_006C(ST+CNT To _STOP)
- CNT=CNT+Len(A$)+1
- Print A$
- Wend
- LI=Peek(ST+A) : Rem Was there a LF after the last byte, or was it cut in the middle of the line?
- If LI<>10
- Cup : Print A$;
- End If
- CNT=0
- Wend
- Extension_10_0016 1